//
//  GDHeaderView.m
//  美团试验 (自己)
//
//  Created by 热带雨林 on 17/2/13.
//  Copyright © 2017年 热带雨林. All rights reserved.
//

#import "GDHeaderView.h"
#import "CZAdditions.h"
#import "Masonry.h"

@implementation GDHeaderView
- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{
    if(self = [super initWithReuseIdentifier:reuseIdentifier]){
        [self setupUI];
    }
    return self;
}

- (void)setupUI{
    self.backgroundColor = [UIColor cz_colorWithHex:0xf8f8f8];
    
    UILabel *label = [[UILabel alloc]init];
    label.font = [UIFont systemFontOfSize:11];
    [label setTextColor:[UIColor cz_colorWithHex:0x7e7e7e]];
    self.label = label;
    //将控件添加到contentView 中
    [self.contentView addSubview:label];
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10);
        make.centerY.equalTo(self.contentView);
    }];
    
}

@end
